package com.guigu.guliorder.feign;

import com.guigu.gulicommon.entity.pojo.res.Res;
import com.guigu.gulicommon.entity.vo.MemberAddressVo;
import com.guigu.gulicommon.entity.vo.UserInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 会员远程调用服务
 *
 * @author 陈俊杰
 * @version 1.0
 * @since 2024/9/26 14:13
 */
@FeignClient(name = "gateway-server", path = "/api/member", contextId = "MemberServer")
public interface MemberServer {
    /**
     * 获取会员收货地址列表
     */
    @GetMapping("/ums-member-receive-address/list")
    Res<MemberAddressVo> list();

    /**
     * 根据Id查询会员信息
     *
     * @return 会员信息
     */
    @GetMapping("/ums-member/info")
    Res<UserInfoVo> getById();
}
